//
//  UIView+Inspectable.swift
//  Weibo
//
//  Created by 姜维克 on 16/5/20.
//  Copyright © 2016年 姜维克. All rights reserved.
//

import UIKit
extension UIView{
    
    @IBInspectable var cornerRadius : CGFloat{
        set{
            self.layer.cornerRadius = newValue
        }
        
        get{
            
            return cornerRadius
        }
        
    }
    
    
    
    @IBInspectable var borderWidth : CGFloat{
        set{
            self.layer.borderWidth = newValue
        }
        
        get{
            
            return borderWidth
        }
        
    }
    
    @IBInspectable var borderColor : UIColor{
        set{
            self.layer.borderColor = newValue.CGColor
        }
        
        get{
            
            return borderColor
        }
        
    }
    
}